package com.example.demo.service;

import com.example.demo.pojo.Preservation;
import com.example.demo.pojo.request.PreservationRequest;

import java.util.List;

/**
 * @author 程序员小洋
 * @version 2022.3
 * @date 2023/5/9 09:16
 * @title 项目维护表的业务接口
 */
@SuppressWarnings("all")
public interface PreservationService {

    /**
     * 新增
     * @param preservation
     * @return
     */
    void save(Preservation preservation);

    /**
     * 修改
     * @param preservation
     * @return
     */
    void update(Preservation preservation);

    /**
     * 根据id删除
     * @param id
     * @return
     */
    void deleteById(Integer id);

    /**
     * 根据id查询
     * @param id
     * @return
     */
    Preservation getById(Integer id);

    /**
     * 条件查询
     * @return
     */
    List<Preservation> list(PreservationRequest preservationRequest);
}
